package com.fs.spring.test.aop.advice;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.aop.AfterReturningAdvice;

import java.lang.reflect.Method;

/**
 * @author shuai.fang
 * @date：2017-08-14
 * @description：
 */
public class GreetingAfterAdvice implements AfterReturningAdvice {

	private Logger logger = LoggerFactory.getLogger(getClass());

	public void afterReturning(Object returnValue, Method method, Object[] args, Object target) throws Throwable {
		logger.info("return value -> {}", returnValue);
		logger.info("method -> {}", method);
		logger.info("args -> {}", args);
		logger.info("target -> {}", target);
		logger.info("你是谁啊");
	}
}
